package com.yuefresh.dish;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.yuefresh.core.Model;
import com.yuefresh.sys.User;


@Entity
@Table(name = "ds_company")
public class Company  extends Model {
	private static final long serialVersionUID = 1534214124234L;
	
	@Id
	@Column(name = "COMPANY_ID")
	private String company_ID;
	@Column(name = "NAME")
	private String name;
	@Column(name = "MEMO")
	private String memo;
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "OWNER_FK")
	private User owner = null;
	
	public Company() {}
	
	public String getCompany_ID() {
		return company_ID;
	}
	public void setCompany_ID(String companyID) {
		company_ID = companyID;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}

	public User getOwner() {
		return owner;
	}
	public void setOwner(User owner) {
		this.owner = owner;
	}
}
